Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@types/lodash-es

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/lodash-es

TypeScript definitions for lodash-es

  • 4.17.12
  • ts4.5
  • ts4.6
  • ts4.7
  • ts4.8
  • ts4.9
  • ts5.0
  • ts5.1
  • ts5.2
  • ts5.3
  • ts5.4
  • ts5.5
  • ts5.6
  • ts5.7
  • ts5.8
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2.2M
increased by6.38%
Maintainers
1
Weekly downloads
 
Created

What is @types/lodash-es?

The @types/lodash-es package provides TypeScript type definitions for lodash-es, a library that offers utility functions for common programming tasks, including manipulating arrays, objects, and strings, as well as utilities for functions, logic, and numbers. This package is essential for TypeScript developers using lodash-es to ensure type safety and autocompletion in their development environment.

What are @types/lodash-es's main functionalities?

Array manipulation

Splits an array into groups the length of the specified size. In this example, it splits an array into chunks of 2.

import { chunk } from 'lodash-es';
const array = ['a', 'b', 'c', 'd'];
const chunkedArray = chunk(array, 2);

Object manipulation

Retrieves all the names of the object's own enumerable property names. In this example, it gets the keys of an object.

import { keys } from 'lodash-es';
const object = { 'a': 1, 'b': 2, 'c': 3 };
const objectKeys = keys(object);

String manipulation

Converts a string to camel case. In this example, it converts 'Foo Bar' to 'fooBar'.

import { camelCase } from 'lodash-es';
const text = 'Foo Bar';
const camelCasedText = camelCase(text);

Function utilities

Creates a debounced function that delays invoking the provided function until after wait milliseconds have elapsed since the last time the debounced function was invoked. Useful for performance optimization, such as limiting how often a function is called on events like resize.

import { debounce } from 'lodash-es';
window.addEventListener('resize', debounce(() => {
  console.log('Resize event handler');
}, 200));

Other packages similar to @types/lodash-es

FAQs

Package last updated on 21 Nov 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc